#version 400 core

#define POSITION	0
#define NORMAL		1
#define COLOR		2
#define TEXCOORD	3
#define FRAG_COLOR	0
#define FRAG_COLOR_AD0 1
#define FRAG_COLOR_AD1 2
#define FRAG_COLOR_AD2 3

uniform mat4 model;
uniform mat4 view;
uniform mat4 proj;

layout(location = POSITION) in vec2 pos;
layout(location = COLOR) in vec4 color;

out vec4 fColor;

void main()
{
	vec4 p = proj * vec4(pos.xy, 0.0, 1.0);
    //p = vec4(pos.xy, 0.0, 1.0);
    
	gl_Position = p;
	fColor = color;
}